﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using BLL;
namespace DBLWebService
{
    /// <summary>
    /// UserOrganizationService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class UserOrganizationService : System.Web.Services.WebService
    {

        [WebMethod]
        public DataSet FindOrganizationDetailByID(int id)
        {
            return UserOrganizationBLL.FindOrganizationDetailByID(id);
        }
        [WebMethod]
        public int AddUpdateUserOrganization(int id, string dblNo, string nickName,
            string fullName, string keyWord1, string keyWord2, string keyWord3,
                string address, string description, string phone, string fax,
                    string email, string mobilePhone, string qq, string msn,
                        string blog, string weibo, string website)
        {
            return UserOrganizationBLL.AddUpdateUserOrganization(id, dblNo, nickName, fullName, keyWord1, keyWord2, keyWord3,
                address, description, phone, fax, email, mobilePhone, qq, msn, blog, weibo, website);
        }
        [WebMethod]
        public int ApproveUserOrganization(int usermemberid)
        {
            return UserOrganizationBLL.ApproveUserOrganization(usermemberid);
        }
        [WebMethod]
        public int NotApproveUserOrganization(int usermemberid)
        {
            return UserOrganizationBLL.NotApproveUserOrganization(usermemberid);
        }
    }
}
